import os

path="g:/video/"
os.chdir(path)

for dir in os.listdir():
    if os.path.isdir(dir):
        if len(os.listdir(dir))<=0:
            print(dir)
        else:
            print(dir,len(os.listdir(dir)))